#ifndef _LQ_TRANSFER_IMAGE_H_
#define _LQ_TRANSFER_IMAGE_H_
#include "lq_include.h"

#define TR_CS P13_0
#define TR_CLK QSPI1_CLK_P11_6
#define TR_MISO QSPI1_MISO_P11_3
#define TR_MOSI QSPI1_MOSI_P11_9
#define IO2 P13_3

#define TR_IMG_W 188
#define TR_IMG_H 120

#define TR_CS_H PIN_Write(TR_CS, 1)
#define TR_CS_L PIN_Write(TR_CS, 0)

#define TR_IO2 PIN_Read(IO2)

extern unsigned char FH[4];
extern unsigned char FE[4];

void TR_driver_init(void);
void IR_Write_byte_4000(unsigned char *dat);
void IR_Wirte_byte(unsigned char *dat, uint16_t len);

void TR_Write_Image(unsigned char high, unsigned char wide, unsigned char *dat);
void TR_Write_Image_Pixle(unsigned char height, unsigned char width, unsigned char *Pixle);
void Test_CAMERA_TR(void);

#endif
